package com.appkubes.mall.restful.application.express.service.impl;

import com.appkubes.mall.core.entity.MallKdCompany;
import com.appkubes.mall.core.service.impl.BaseMallKdCompanyServiceImpl;
import com.appkubes.mall.restful.application.express.service.KdCompanyService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KdCompanyServiceImpl extends BaseMallKdCompanyServiceImpl implements KdCompanyService {


    @Override
    public MallKdCompany get(String code) {
        MallKdCompany query = new MallKdCompany();
        query.setCode(code);
        List<MallKdCompany> kdList = this.selectListByEntity(query);
        if (kdList.size() == 0) return null;
        return kdList.get(0);
    }
}
